package Day002_final_static_接口.zuoye01;

public class Test {
    public static void main(String[] args) {
        car car1 = new car();
        car1.setPinpai("奔驰车");
        car car2 = new car();
        car2.setPinpai("宝马车");

        motuo motuo1 = new motuo();
        motuo1.setPinpai("雅马哈摩托车");
        motuo motuo2 = new motuo();
        motuo2.setPinpai("宝马摩托车");

        car2.GPS();//宝马车GPS

        motuo2.GPS();//宝马摩托车GPS
    }
}
